package com.zheng.demo.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_sku_attribute")
public class ShopSkuAttribute extends Model<ShopSkuAttribute> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 属性key
     */
	@TableField("attribute_key")
	private String attributeKey;
    /**
     * 属性value
     */
	@TableField("attribute_value")
	private String attributeValue;
	@TableField("attribute_key_id")
	private Integer attributeKeyId;
    /**
     * 属性图片地址
     */
	private String image;
	@TableField("sku_id")
	private Integer skuId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAttributeKey() {
		return attributeKey;
	}

	public void setAttributeKey(String attributeKey) {
		this.attributeKey = attributeKey;
	}

	public String getAttributeValue() {
		return attributeValue;
	}

	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	public Integer getAttributeKeyId() {
		return attributeKeyId;
	}

	public void setAttributeKeyId(Integer attributeKeyId) {
		this.attributeKeyId = attributeKeyId;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopSkuAttribute{" +
			"id=" + id +
			", attributeKey=" + attributeKey +
			", attributeValue=" + attributeValue +
			", attributeKeyId=" + attributeKeyId +
			", image=" + image +
			", skuId=" + skuId +
			"}";
	}
}
